/* 关键帧动画 */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.5;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0.5;
    transform: translate(0.5rem, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(1rem, -50%) scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate(calc(-100% - 0.5rem), -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(calc(-100% - 1rem), -50%) scale(1);
  }
}

/* question模式下的动画 */
@keyframes questionFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 添加透明度过渡动画 */
@keyframes fadeToTransparent {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeFromTransparent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 透明样式类 */
.transparent {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 标记点样式 */
.marker-point {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* question模式下的标记点样式 */
.marker-question {
  width: 0.6rem;
  height: 0.6rem;
  z-index: 100;
  box-shadow: 0 0 0.4rem rgba(255, 255, 255, 0.8);
}

/* 标记点颜色样式 */
.marker-red {
  background: radial-gradient( 50% 50% at 51% 50%, rgba(232,34,34,0) 0%, rgba(232,34,34,0) 37%, rgba(232,34,34,0.6) 100%);
}

.marker-yellow {
  background: radial-gradient( 50% 50% at 51% 50%, rgba(255,203,0,0) 0%, rgba(255,203,0,0) 38%, rgba(255,203,0,0.6) 100%);
}

.marker-green {
  background: radial-gradient( 50% 50% at 51% 50%, rgba(15,181,249,0) 0%, rgba(15,181,249,0) 38%, rgba(15,181,249,0.6) 100%);
}

/* 脉冲效果颜色样式 */
.pulse-red {
  background: #E82222;
}

.pulse-yellow {
  background: #FFCB00;
}

.pulse-green {
  background: rgba(15, 181, 249, 1);
}

/* 脉冲效果 */
.marker-pulse {
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1s infinite ease-out;
  z-index: 20;
  pointer-events: none;
}

/* question模式下的脉冲效果 */
.pulse-question {
  width: 0.4rem;
  height: 0.4rem;
  animation: pulse 1.5s infinite ease-out;
}

/* 连接线样式 */
.connector-line {
  position: absolute;
  height: 0.1rem;
  z-index: 9;
  pointer-events: none;
  transform-origin: left center;
  opacity: 0.8;
  z-index: 20;
  box-shadow: 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

/* question模式下的连接线样式 */
.connector-question {
  height: 0.05rem;
  opacity: 0.7;
}

/* 连接线颜色样式 */
.connector-red {
  background: linear-gradient(90deg, #E82222 0%, rgba(232, 34, 34, 0.6) 100%);
}

.connector-yellow {
  background: linear-gradient(90deg, #FFCB00 0%, rgba(255, 203, 0, 0.6) 100%);
}

.connector-green {
  background: linear-gradient(90deg, rgba(15, 181, 249, 1) 0%, rgba(15, 181, 249, 0.6) 100%);
}

/* 信息卡片样式 - 新样式 */
.info-card {
  display: flex;
  flex-direction: column;
  position: absolute;
  overflow: visible;
  color: white;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  z-index: 1001;
}

/* 不同类型的卡片背景 */
.card-red {
  width: 12.6rem;
  height: 8.4rem;
  background-image: url("../../../../../public/images/BG-红.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.card-yellow {
  width: 12.6rem;
  height: 8.4rem;
  background: url("../../../../../public/images/BG-黄.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.card-green {
  width: 12.6rem;
  height: 8.4rem;
  background: url("../../../../../public/images/BG-蓝.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.header {
  padding: 0.4rem 0.8rem;
  padding-top: 0.25rem;
  border-bottom: 0.05rem solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  margin: 0;
  font-size: 0.7rem;
  width: calc(100% - 1.2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标题中的tag名称 */
.tag-name {
  margin-left: 0.3rem;
  font-size: 0.55rem;
  opacity: 0.8;
  font-weight: normal;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 0.1rem;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.2s;

  &:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.spanIcon {
  position: relative;
  top: 0.1rem;
  width: 12px;
  height: 12px;
  background-image: url("../../../../../public/images/放大.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 0.4rem;
}

.status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.35rem;
  padding-bottom: 0;
}

.status-text {
  width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6rem;
}

.btn-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-label {
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}

.status-value {
  color: #fff;
  font-weight: bold;
  margin: 0 0.2rem;
}

.detail-link {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;

  &:hover {
    color: white;
    text-decoration: underline;
  }
}

.description {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.chart {
  position: relative;
  display: flex;
  flex: 1;
}

.percent-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 0.4rem;
  width: 2rem;
}

.percent-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.chart-container {
  flex: 1;
  overflow: visible;
  position: relative;
}

.update-time {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
}